<?php

$url = "http://my-site.com?name=hari om&age='12'";
$encoded = urlencode($url);
var_dump($encoded);
var_dump(urldecode($encoded));
